/**
 * Created by xzz on 2017/12/6.
 */
import axios from './request'

const path = ''
// const path = ''
// post
export function post(url, data) {
    return axios.post(url, data)
}
// get
export function get(url, params) {
    return axios.get(url, { params: params })
}

// 获取考试列表
export function getPay(data) {
    return axios.get(path + '/pay/do', { params: { payment: data.payment, amount: data.amount, name: data.name } })
}

//
export function pay(data) {
    return axios.post(path + '/pay/do', data)
}
